package com.example.demo.entity.VO;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "Foster对象", description = "寄养对象")
public class FosterVO {

    @NotNull
    @ApiModelProperty(value = "用户ID",required = true)
    private Integer userId;

    @NotNull
    @ApiModelProperty(value = "宠物ID",required = true)
    private Integer petId;

    @NotNull
    @ApiModelProperty(value = "起始时间",required = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate startTime;

    @NotNull
    @ApiModelProperty(value = "取回时间",required = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate endTime;
}
